package com.lanchetech.dao;
import java.util.List;

import com.lanchetech.bean.request.PageReq;
import com.lanchetech.bean.vo.BossVO;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.Boss;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BossMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Boss record);

    int insertSelective(Boss record);

    Boss selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Boss record);

    int updateByPrimaryKey(Boss record);

    Boss findOneByShopId(@Param("shopId")Long shopId);

    int deleteByShopId(@Param("shopId")Long shopId);

    List<Boss> findAllByShopIds(@Param("shopIds")List<Long> shopIds);

    List<BossVO> findAllPage(PageReq req);

    Boss findOneByShopIdAndUserId(@Param("shopId")Long shopId,@Param("userId")Long userId);


}